<?
	// Listado
	
	// Arma la matrix
		$oPaging = new Paging( $this->aDatos[$cTemplateId][cThisUrl] . $this->aDatos[$cTemplateId][cThisUrlParametros] . "&amp;tr=" . $this->getTarget(), 'servicios', 20);
		$oPaging->setTotalItems ( $this->aDatos[$cTemplateId][nqResultados]);
		
		$ncGacetilla = $this->aDatos[$cTemplateId][ncGacetilla];
		if ( $ncGacetilla ) 
		{
			$nEnvio = getParam('nEnvio');
			if ( $nEnvio)  {
				include( PATH_FILES . 'gacetillas/' . $ncGacetilla . '/' .$nEnvio . '.html' );
			} else  {
			$cSql = 'SELECT * FROM gtGacetillaEnvio WHERE ncGacetilla = ' . $ncGacetilla . ' ORDER BY dGacetilla DESC' ;
			$aGacetillas = $this->oDatabase->getMatrix($cSql  , $oPaging->getFrom(), $oPaging->getLength());
	?>
		<div id="servicios">
			<div id="modos" style="margin-top: 10px; overflow: hidden;">
				<div style="clear: none; overflow: autro; color: #000000; margin-bottom: 2px; border-bottom: 1px dashed #cccccc; padding: 2px">
					<div style="float: left;"><?= $oPaging->makePages(); ?></div>
				</div>
				<div style="padding: 10px">
					<?
						$nCont = $oPaging->getFrom() +  1;
						$cUrlBase = replaceString( 'nEnvio', '',  $this->getThisUrl() );
						foreach ( $aGacetillas as $aGacetilla )
						{					
							$cColor = ( ( $nCont % 2 ) == 0 )? "1" : "2";
							echo "	<div class='item_lista_armador$cColor' style='padding-left:5px;'>
										<div margin-left: 4px'><a href='$cUrlBase&amp;nEnvio=$aGacetilla[ncOrden]' >". $aGacetilla[cAsunto]."</a></div>
									</div>";
							$nCont++;
						}
					?>
				</div>
			</div>
		</div>
	<? }
	}
?>